//
//  XLTalkThemeCell.m
//  XiangLove
//
//  Created by 李传坤 on 2018/6/5.
//  Copyright © 2018年 BAOMIHUA.COM. All rights reserved.
//

#import "XLTalkThemeCell.h"

@implementation XLTalkThemeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.contentView.backgroundColor = kClearColor;
        [self setupView];
    }
    return self;
}

- (void)setupView {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.separatorInset = UIEdgeInsetsMake(0, 44, 0, 0);
    
   
    _tittleLabel = [[UILabel alloc] init];
    _tittleLabel.font = [UIFont systemFontOfSize:17];
    _tittleLabel.textColor = kWhiteColor;
    _tittleLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:_tittleLabel];
    [_tittleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.contentView);
    }];
    _lineView = [[UILabel alloc] init];
    _lineView.backgroundColor = RGBA_HEX(0XFFFFFF, 0.3);
    [self.contentView addSubview:_lineView];
    [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo (self.contentView.mas_left).offset(10);
        make.right.equalTo (self.contentView.mas_right).offset(-10);
        make.bottom.equalTo (self.contentView.mas_bottom);
        make.top.equalTo (self.contentView.mas_bottom).offset(-0.5);
    }];
    
}

@end
